import request from '@/utils/request'

// 查询装扮试用信息列表
export function listTrial(query) {
  return request({
    url: '/system/trial/list',
    method: 'get',
    params: query
  })
}

// 查询装扮试用信息详细
export function getTrial(trialRecordId) {
  return request({
    url: '/system/trial/' + trialRecordId,
    method: 'get'
  })
}

// 新增装扮试用信息
export function addTrial(data) {
  return request({
    url: '/system/trial',
    method: 'post',
    data: data
  })
}

// 修改装扮试用信息
export function updateTrial(data) {
  return request({
    url: '/system/trial',
    method: 'put',
    data: data
  })
}

// 删除装扮试用信息
export function delTrial(trialRecordId) {
  return request({
    url: '/system/trial/' + trialRecordId,
    method: 'delete'
  })
}
